<template>
    <div id="app">
        <mt-header v-bind:title="title" style="background-color:#fda10e">
            <a slot="left" @click="back()"><i class="mintui mintui-back"></i></a>

        </mt-header>
        <div class="mui-content" style="background-color:#fff">
            <ul class="mui-table-view">
                <li class="mui-table-view-cell" onclick="info()">
                    <a class="mui-navigate-right">
                        <span class="" style="font-size:16px;"> <img src="../assets/images/per1.png" style="height:25px;margin-right:10px;" alt="">切换学生</span>
                    </a>
                </li>
                <li class="mui-table-view-cell" onclick="version()">
                    <a class="mui-navigate-right">
                        <span class="" style="font-size:16px;"> <img src="../assets/images/per2.png" style="height:25px;margin-right:10px;font-size:14px;" alt="">关于我们</span>
                    </a>
                </li>


            </ul>

        


        </div>

    </div>
</template>
<script>
    import {
        MessageBox
    } from 'mint-ui';
     import Bus from '../bus.js'
    export default {
        name: 'app',
        data() {
            return {
                list: [],
                isOpenA: true,
                isOpenB: false,
                isShowBox: false,
                title: '设置'
            }
        },
        components: {
           
        },
        methods: {
            goBack() {
                this.$router.push({
                    path: '/my'
                })
            },
            selectClarity() {
                console.log(this.clarity);
                this.isShowBox = false;
            },
            changeSwitchA() {
                this.isOpenA = !this.isOpenA
            },
            changeSwitchB() {
                this.isOpenB = !this.isOpenB
            },
            sureExit() {
                MessageBox.confirm('确定退出当前账号?').then(action => {
                    localStorage.clear()
                    this.$router.push({
                        path: '/login1'
                    });
                }, err => {
                    console.log(err);
                });
            },
             back: function () {
                Bus.$emit('val', "show")
                this.$router.go(-1);
            }
        },
        created() {

        }
    }

</script>
<style scoped>
</style>
